package com.jubaopen.service;

import java.util.List;
import java.util.Map;

import com.jubaopen.bean.BankHistory;
import com.jubaopen.dao.BankHistoryDAO;

public class BankHistoryService {

	private BankHistoryDAO bankHistoryDAO;

	public void setBankHistoryDAO(BankHistoryDAO bankHistoryDAO) {
		this.bankHistoryDAO = bankHistoryDAO;
	}
	
	public List<BankHistory> getHistoryList(int userId){
		List<BankHistory> histories = bankHistoryDAO.getList(userId);
		return histories;
	}
	
	public void deleteHistory(Map<String, Object> hashMap) {
		bankHistoryDAO.delete(hashMap);
	}
	
}
